import { defineConfig } from 'vite'
import {resolve} from 'path'
import vue from '@vitejs/plugin-vue'
const pathResolve = (dir: string): string => resolve(__dirname, dir)

// https://vite.dev/config/
export default defineConfig({
  plugins: [
    vue()
  ],
  /* 
  // 以下这样配置，可以更改打包后文件的目录，静态文件目录，入口文件名称
  base: 'dtiptap',
  build: {
    assetsDir: 'test',
    rollupOptions: {
      input: 'test.html'
    }
  }, */
  resolve: {
    alias: {
      '@': pathResolve('./src'),
    },
  },
})
